package cn.sixmillions.ps.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * markdown预览(TtMdPreview)实体类
 *
 * @author six
 * @since 2023-01-12
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Data
@TableName("tt_md_preview")
public class MdPreview implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "md_id", type = IdType.INPUT)
    private String mdId;

    /**
     * 自增id，方便排序和计数
     * 并不是主键
     */
    @TableField("id")
    private String id;

    @TableField("md_secret")
    private String mdSecret;

    @TableField("md_title")
    private String mdTitle;

    @TableField("md_content")
    private String mdContent;

    @TableField("created_by")
    private String createdBy;

    @TableField("created_date")
    private LocalDateTime createdDate;

    @TableField("last_modified_by")
    private String lastModifiedBy;

    @TableField("last_modified_date")
    private LocalDateTime lastModifiedDate;

}

